import request from "@/utils/request";

// 查询会员列表（仅是会员）
export function listMembers(query) {
  return request({
    url: "/system/members/management/list",
    method: "get",
    params: query,
  });
}

// 查询会员详细
export function getMembers(membersId) {
  return request({
    url: "/system/members/management/" + membersId,
    method: "get",
  });
}

// 修改会员
export function updateMembers(data) {
  return request({
    url: "/system/members/management",
    method: "put",
    data: data,
  });
}

// 删除会员
export function delMembers(membersId) {
  return request({
    url: "/system/members/management/" + membersId,
    method: "delete",
  });
}

// 导出
export function exportMembers(query) {
  return request({
    url: "/system/members/management/export",
    method: "post",
    params: query,
  });
}


